//引入react核心库
import React from 'react';
//引入ReactDOM-渲染
import ReactDOM from 'react-dom/client';
import App from './App';
//引入store
import store from "./redux/store";

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
          <App />
);
store.subscribe(()=>{
    root.render(<App />);
})
